
package com.microsoft.schemas.passport.soapservices.credentialserviceapi.v1;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;


/**
 * <p>Java class for EnumSHVersion.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="EnumSHVersion">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="eshHeader30"/>
 *     &lt;enumeration value="eshHeader25"/>
 *     &lt;enumeration value="eshNone"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlEnum
public enum EnumSHVersion {

    @XmlEnumValue("eshHeader25")
    ESH_HEADER_25("eshHeader25"),
    @XmlEnumValue("eshHeader30")
    ESH_HEADER_30("eshHeader30"),
    @XmlEnumValue("eshNone")
    ESH_NONE("eshNone");
    private final String value;

    EnumSHVersion(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static EnumSHVersion fromValue(String v) {
        for (EnumSHVersion c: EnumSHVersion.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v.toString());
    }

}
